package work3
// 0：输出今天的日期和周几，周几用汉字表示
import java.time.LocalDate
import java.time.format.TextStyle
import java.util.Locale

object TodayInfo {
  def main(args: Array[String]): Unit = {
    val today = LocalDate.now()
    val dayOfWeek = today.getDayOfWeek.getDisplayName(TextStyle.FULL, Locale.CHINA)
    println(s"今天的日期是：${today}")
    println(s"今天是：$dayOfWeek")
  }
}